package com.shiro.exception.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created with IntelliJ IDEA.
 * User: dengpeng
 * Date: 2018/6/29
 * Time: 14:02
 * Description: 自定义异常
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CustomExceptionModel extends RuntimeException {

    private String code;

    private String description;

    public CustomExceptionModel(String code, String description) {

        super(description);
        this.code = code;
        this.description = description;
    }
}
